<div class="grid_12">
    <div class="searchWrap" style="margin-bottom: 5px;float:right">
        <input type="text" id="keyword" name="keyword" class="keyword" val="<?php echo $keyword ?>" placeholder="Nhập từ khóa tìm kiếm"/>
        <input type="button" id="search" value="Tìm kiếm" rel="<?php echo site_url('admin/price_sim/index') ?>"/>
    </div>
    <div id="demo" class="clearfix">
        <table class="display" id="dataTable"> 
            <thead> 
                <tr> 
                    <th>Sim yêu cầu</th> 
                    <th>Họ tên</th> 
                    <th>Thời gian</th> 
                    <th>Loại</th> 
                    <th>Trạng thái</th> 
                    <th></th> 
                </tr> 
            </thead>
            <tbody>
                <?php foreach($price as $p): ?>
                    <tr class="<?php echo ($p['status'] == 1) ? 'gradeA' : 'gradeX' ?>"> 
                        <td class="center"><?php echo $p['sim_phone'] ?></td> 
                        <td class="center"><?php echo $p['name_contact'] ?></td>
                        <td class="center"><?php echo $p['time'] ?></td>
                        <td class="center">
                            <?php 
                                switch ($p['type']) {
                                    case 1 : 
                                        echo 'Yêu cầu';
                                        break;
                                    case 2 :
                                        echo 'Đặt mua';
                                        break;
                                }
                            ?>
                        </td> 
                        <td class="center">
                            <?php 
                                switch ($p['status']) {
                                    case 1 : 
                                        echo 'Mới';
                                        break;
                                    case 2 :
                                        echo 'Đã đọc';
                                        break;
                                }
                            ?>
                        </td> 
                        <td class="center">
                            <a href="<?php echo site_url('admin/price_sim/getAllContactDetails/'. $p['id']) ?>">Đọc</a>
                        </td>
                    </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
        <!-- Begin pagination -->
        <div class="pagination" style="margin-top: 5px">
            <?php echo $pagination ?>
        </div>
        <!-- End pagination -->
    </div>
</div>